package com.swagger3test.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author stylts
 * @since 2025-10-31
 */

@Data
@Schema(name = "TUser", description = "用户表")
public class TUser  {


    @Schema(description = "用户ID，主键")
    private Long id;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "性别：0-未知 1-男 2-女")
    private Boolean sex;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Override
    public String toString() {
        return "TUser{" +
                "id=" + id +
                ", name=" + name +
                ", password=" + password +
                ", age=" + age +
                ", sex=" + sex +
                ", phone=" + phone +
                ", email=" + email +
                "}";
    }


}